<include file="Admin@Public/header" /> 
<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
    <ol class="breadcrumb">
      <li>网站内容</li>
      <li>在线留言</li>
      <li class="active">回复</li>
    </ol>
     
    <form  class="form-horizontal" role="form" action="__URL__/save" >
      <input type="hidden" name="inputId" value="{$leavemsg.id}" > 

      <div class="form-group">
        <label  class="col-sm-2 control-label">是否回复</label>
        <div class="col-sm-4">
            <switch name="leavemsg.iscall"> 
              <case value="N"><span class="btn btn-danger" >未回复</span></case>
              <case value="Y"><span class="btn btn-info" >已回复</span></case>
            </switch>
        </div>
      </div>
      <div class="form-group">
        <label for="inputMsg" class="col-sm-2 control-label">留言</label>
        <div class="col-sm-6">
          <textarea class="form-control" id="inputMsg" readonly>{$leavemsg.msg}</textarea>
        </div>
      </div>

      <div class="form-group">
        <label for="inputCallmsg" class="col-sm-2 control-label">回复</label>
        <div class="col-sm-6">
          <textarea class="form-control" id="inputCallmsg" name="inputCallmsg" placeholder="请输入回复内容" datatype="*0-320" errormsg="<i class='icon-warning-sign'></i> 请输入回复内容"  nullmsg="<i class='icon-warning-sign'></i> 请填写信息！" >{$leavemsg.callmsg}</textarea>
        </div>
        <div class="Validform_checktip">
           <div class="Validform-info">回复内容字数在0-320字<span class="dec"><s class="dec1">&#9670;</s><s class="dec2">&#9670;</s></span></div>
        </div>
      </div>
      
      <div class="form-group">
        <label for="inputStatus" class="col-sm-2 control-label">是否显示</label>
        <div class="col-sm-4">
          <input type="checkbox" name="inputStatus" value="1" id="inputStatus" <if condition="$leavemsg[status] == 1"> checked</if>> 显示
        </div>
      </div>

      <div class="form-group">
        <label  class="col-sm-2 control-label"> </label>
        <div class="col-sm-4">
          <input type="button" class="btn btn-primary" value="回复" id="btn_sub"/>
           <a href="__URL__/index" class="btn btn-default" >返回</a>
      </div>
    </div>
    </form> 
</div>


<include file="Admin@Public/script_form" /> 
<include file="Admin@Public/footer" />  